error checking not working else valid data works so yet to $@ function