modify objects on the fly