fix build fn