remove unused code
remove unnecessary spec code