tried to fix my mistakes