fixed gradchecker and fixes for paramterized