memoryleaks removed