now using inputpath