How to solve out of space problem