change node width calculation