used jackson annotation to simplify code