write url in construtor