rm obsolete code