here is where appendToUrl method should be used