aplicando metodo locals