added 2d code for ProtoX360