implemented admin functions