add log table and resize functions