fixed a problem with argument counting