narrowing widening not working properly