solving scalability problem