added defaultstate class