mock  thru code