not working populate file