fixing variable declaration of service_type; removing it since it is passed and declared in several areas