remove warning by moving a method to the implementation