Compiles and no errors but does not work