i moved the code around and it now works thanks