* optimize code