added first bit of remove() method