retyped the code to see if it works