changing props now change the internal state