fixng the order of take