added populate method to close issue #15