check if they exist before assingment