use exceptions in filling object