rename state trigger to transition