remove extra loop from typeSetResponsive function, @debugs everywhere