moved equipment and equipment related functions to model