accept url as a func param