added category functions