Unificated similar codes
Stupid gcc!!