closure seems to be working fine