GP working like the python version :)