I am a homeowner and I don't know much about electricity other than basic wiring. I was replacing some ceiling light fixtures today and I am unsure of the existing wiring situation. There are 4 wires coming into the box. Each with a black, white, & ground (12 individual wires). The way that it was in the box is all 4 blacks are connected with a nut, 3 whites are connected with a nut and there is a white all alone. On the fixture, the white is connected to the 3 white in the box, and the black is connected to the single white wire in the box (Ground to ground). This is how it is throughout the house. The instructions say connect the fixture lights to the corresponding color but I just rewired the new fixture the way that this was.(And the light works)Is this the correct way to wire this, and is it safe how it is? I will upload a picture if this is too wordy to understand.