trying out again with the partial function