added first resolution
added picking node from end
how it could be that simple... i must not overcomplicate things...