remove deadcode from models