adding simplified implementation but commented out.