add helper methods for trail #1
add helper methods for trail #2