make some function of common procedure