buggy solution