add business code into functions