fixing functional callback
Merge pull request #1 from MadisonReed/andris

fixing functional callback