alternative solution to 1000