use last instead of [-1]