using of functions replacing