faster format checking