calculate_method added