using typealias webrequest in another method