fixed issue with declared parameters that are not there