added params check