test with ducplicated code