better implementation of densify