callback function works now, more functions translated