fixed populate so it doesnt reenter same values