Deleted 2nd if and changed to else if