removed all compiler warnings in smp