how can this program be improved