removed redundent build func