almost working
working with g