remove sizeof checks since they are implementation depedenent