reverted to local s code