set properties in prepare methods