reverted state to use long type