Solve Compiler errors

remove various compiler errors