fixed logic, so it works without any params sent