removed pointer delete to allow garbage collector to handle it