working on order()