corrigindo null pointer