almost finish order functionality