removed another function annotation for python2 compatibility