isFull method added