back to working function before refactor