working on a solution for ip problem