taking out log function