add ratio validation