revised that mess of code that resulted into delivering non-settable home and last positions