working on closure conversion