initial version with intentional bug(s)