adds working reservation algorithm