updating service logic