pass correct type of data through