fixing wrongly named function