prettier solution for 3