fixing functions through namespaces