divide one big func to 2 small funcs
usage of matias_meier
remove empty lines
add new funtions
usage of matias_meier functions