added autopopulate function for testing purposes