compile fail, fixed

tried to compile, fixed minor errors