function is ok check the mem leak