cleaned up unused function