small changes

saving before i change the main working algorithm