code that is working vs not working