small changes that cause problems to my code fixed