passing offset to the didChangeState func.