it code be null, so i had to check first