add helper method to replace content