added transitions w/ functions