changed delete behaviour