functions for GP
removed the functions