change width calculation