fixed bug with unneccessary argument