rename functions with generic name (foo).

closes #151