actually currying may not have been best there