fixed smart errors I made earlier