made a copy from robins code,
rebuilding it to find my own way