I think this is before your changes, but add a single scope between scope function definitions for readability.