init get_details and refactoring