removed mem leak