enhanching some function.