fixed master theorem issue