forgot to set params to {} when they are not passed