Remove useless var & console log