generating filename based on url