fixed problem with calculated parameters