updated var name from osname to os_name