fixed problem with unexpected argument type