almost there

@buildmaster 
put this declaration closer to it's usage as its scoped too widely here.