change state to boolean for printer