refactor in defaults options