using a non blocking call to insert into the queue