changed from switch to if's
Merge remote-tracking branch 'origin/master'