eliminating compiling errors