fixed minor indent and syntax bugs