thanks guys.i checked one of the connections on the headlight switch seemed to be the problem.