remove unused code
inline code