Tested prepopulate function found some problems