nap max variable
nap max implemented