changed function names to avoid polluting namespace