optimize by removing require