returning a value syncrounously