Bug fixed...j should iterate from 1 instead of 2