modified for mandatory paramaters validation