trying to fix populate, etc
fix for populate(), removed some debugging lines