extracted method to external classes