using formdata object when possible