need to make untyped functions work everywhere