some minor changes on kernel and gp