correcting minor checks