sanity check added (just in case)