Added third if(){