got rid of unwanted files
change direction added, need to handle negative values