fixed SL for functions