changed var name to stop conflicts with built in functions