working version of the simplified tool