add tickets functions

add tickets functions