updating relevant functions