started to use functions