compile return only one function instead of function sequnce