forgot to handle the nil case