changed the ranges for shape detection. red still needs refining