updated type to not use helper function