added freeing memory