removed the is-valid check
fixed build