correctly join
cast values