added private check also