found bug in the codes code and fixed it