move method to main file. remove unnecessary log message.