Functions for 2-d massive