function to use