adding code from helical