made some variables transient