make order function
finish task g except pagination