added fixes from arnold procedural