add transition condition