add logic to process first transition