Resolve working, annon. func. doesn't allways return value