ok got it functioning