remove excess code from other plant calculations