temp commit: compile, ok; prog not properly working