resolving errors I can't believe I missed