finally faced a tricky problem