parameters validation added