fixed error cause by using incorrect paramater