maybe some comment whats happening in the following lines?