after adding while to cal power of 2's up to 16.