added and tested pivot model
utils