fixed erroneous dependency on params