finding alternate solution