added nanox function