changed to package visibility for transition() method.