change type to local