added delete behaviour