removed counter and expr functions