getting functional i think
download link logic