rm unnecessary var passed