fixed a programming question