getter for last state