add setLoged method