add check for params