fixed arg passing bug