added condition for when there are no parameters