put limit on state input