refactor accepts