inappropriate use of replace methods removed