initial crummy solution to #5