fix typos and readability. remove redunandant require