deleted println and updated with test for del function