added checking for right arg count in signals and slots