split create_reply into few methods