remove some code of derby