will it be better if you move this method definition into class << self section above?