pass an object instead of 4 params