make sure that also functions can be passed in as value