changed 521 method