code modified for 2 spaces