Consider to use log funciton