passing things to function