add first try for passing  into valuefunction