integer check on power