add high and low constants; tabs to spaces; remove console logs