cleaned up multiple replace