check before assigning properties