modify hash code because of defualt parameters change