added method allow you to expose the current state