fixed error in approved method