start of implementing patricks method

but needs to be fixed, 2 late for now..