altering data before loading object