added the val to the return values