working on invarient properties error