updated core code