thanks to -Wall I found bug in the compute.cpp file