added attributes to prepare method