heap space solved and removed unused contents