fixed arg bracket bug, added reorder functions