changed to work on individual chromosome input