working with static functions