modified delete behaviour