removing a duplicated function