factory working for resources