added comment how method works