script to determine work type chosen