fix to work with int type.