simple function and some more questions