took a look at the function