functions for S/S/1 queuing system added