more than one function was kinda unnecessary