redirect urls
preremove
refactored method