actually old solution was faster