Indian coding and variables with first capital letter ceased to exist.
forgot about code in comments and walked the Indian way of developing. now fixed.
unnecessary cast was fixed