create a function that will only be used from an object context