fixed some things up. It seems that i had some problems with taking values from the pipeline and when you got the values. Hopefully fixed