removed memory freeing operation to prevent errors