added more validators and size util