added check if power is greater then 255 or less than -255