fixed minor errors, compiles