added release functionality and loop curve