populating logic is done with, but still getting strange mistakes