removes log function and calls