removed bug with newer gcc version
debugged most important programs