updates, still not compiling
corrected the solution