removed state property from getState