code to put into maya.