mem leak fixed..