a bug after moving compute functions to a new file