initizing again when properties are changed