clear queue in such a way that does not create new object