switched to a function