remove unsued variable and optimize call