use function interface similar to getSize (no need to pass ids)