added file removal function