hopefully solved sloppy note issue. refer to  instead of outside of scope