switched to object based function input