code finished but not working properly