fixing parameters for transition function

just a simple syntax fix for the .transition function.