remove long unused code