removed extracted function