fixing hd and tl calls in compile