better approach for ips