small logic msitake