made foliage width dynamic