removes all log before showing
removes extra code