updated to accomidate narrow windows