added paramvalidate