before making ped state inline